package edu.neusoft.yiqibike.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import edu.neusoft.yiqibike.common.entity.mysql.IpRecord;
import edu.neusoft.yiqibike.common.entity.vo.IpRecordVo;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author lyc
 * @since 2017-11-03
 */
public interface IpRecordMapper extends BaseMapper<IpRecord> {
    void updateIsEnableById(@Param("id") String id, @Param("isEnable") Integer isEnable);

    List<IpRecord> selectByPage(Page<IpRecord> page, @Param("ew") Wrapper<Object> wrapper);

    void deleteBatchByIds(@Param("ids") List<String> ids);

    IpRecord selectOneById(String id);

    List<IpRecordVo> selectHideIpList(Page<IpRecordVo> page);
}